local skynet = require "skynet"

local protocol = {}

protocol.id = {
	pid_login_req = 1,
	pid_login_ack = 2,
	pid_register_req=5,
	pid_register_ack=6,
	pid_login_test = 1000,
}

function protocol.add_handler(protoId, handler)
	skynet.call(protocol.instance, "lua", "_add_handler_core", protoId, handler)
end


function protocol.remove_handler(protoId, handler)
	skynet.call(protocol.instance, "lua", "_remove_handler_core", protoId, handler)
end

return protocol